package com.kayt.cyberBar.company.business.entity.po;

import java.io.Serializable;
import javax.persistence.*;

import org.codehaus.jackson.annotate.JsonBackReference;
import org.codehaus.jackson.annotate.JsonIgnore;


/**
 * The persistent class for the b_company_ware_base_desc database table.
 * 
 */
@Entity
@Table(name="b_company_ware_base_desc")
@NamedQuery(name="BCompanyWareBaseDesc.findAll", query="SELECT b FROM BCompanyWareBaseDesc b")
public class BCompanyWareBaseDesc implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	private String code;
	private String createTime;
	private String des;
	private String sequence;
	private String statusCode;
	private String mainCode;
	private String title;
	private String updateTime;
	
	private BCompanyWareBase ware;

	public BCompanyWareBaseDesc() {
	}


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	@Column(name="CREATE_TIME")
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}


	public String getDes() {
		return this.des;
	}

	public void setDes(String des) {
		this.des = des;
	}


	public String getSequence() {
		return this.sequence;
	}

	public void setSequence(String sequence) {
		this.sequence = sequence;
	}


	@Column(name="STATUS_CODE")
	public String getStatusCode() {
		return this.statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}


	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}


	@Column(name="UPDATE_TIME")
	public String getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name="MAIN_CODE")
	public String getMainCode() {
		return mainCode;
	}


	public void setMainCode(String mainCode) {
		this.mainCode = mainCode;
	}


	@ManyToOne(targetEntity = BCompanyWareBase.class, fetch = FetchType.LAZY)
	@JoinColumn(name="MAIN_CODE", referencedColumnName="CODE", nullable = false, insertable=false, updatable=false)
	@JsonIgnore
	public BCompanyWareBase getWare() {
		return ware;
	}


	public void setWare(BCompanyWareBase ware) {
		this.ware = ware;
	}

}